import React from 'react';
import { UploadOutlined } from '@ant-design/icons';
import type { UploadProps } from 'antd';
import { Button, message, Upload } from 'antd';
import { request } from '../../../../common/request'
import { urls } from '../../../../common/urls';
import './index.less';

function Img({ handleSendFile }: any) {
    const props: UploadProps = {
        beforeUpload: (file) => {
            handleSendFile(file);
            return false;
        },
    };
    return (
        <Upload {...props} className="img-upload">
            <img
                className='input-box-top-icon'
                src="/assets/icon/xiaoxi_wenjian@2x(1).png"
                alt=""
            />
        </Upload>
    );
}

export default Img;